<template>
  <div class="about">
    <div class="hero">
      <h1>关于我们</h1>
      <p>Vue3 优雅模板是一个现代化的前端开发解决方案，旨在帮助开发者快速启动和构建高质量的 Vue.js 应用程序。我们专注于提供美观、易用且功能强大的组件库。</p>
    </div>
    
    <div class="section">
      <h2 class="section__title">我们的团队</h2>
      <div class="grid grid--3-cols">
        <div v-for="member in teamMembers" :key="member.name" class="team-member">
          <AdvancedCard>
            <img :src="member.avatar" :alt="member.name" class="team-avatar">
            <h3 v-text="member.name"></h3>
            <p class="role" v-text="member.role"></p>
            <p v-text="member.description"></p>
          </AdvancedCard>
        </div>
      </div>
    </div>
    
    <div class="section">
      <h2 class="section__title">技术栈</h2>
      <div class="tech-stack">
        <div class="grid grid--2-cols">
          <div v-for="tech in technologies" :key="tech.name" class="tech-stack-card">
            <AdvancedCard>
              <template #header>
                <h3 v-text="tech.name"></h3>
              </template>
              <p v-text="tech.description"></p>
            </AdvancedCard>
          </div>
        </div>
      </div>
    </div>
    
    <div class="section">
      <h2 class="section__title">项目优势</h2>
      <div class="grid grid--2-cols">
        <div v-for="benefit in benefits" :key="benefit.title" class="benefit-card">
          <AdvancedCard>
            <template #header>
              <h3 v-text="benefit.title"></h3>
            </template>
            <p v-text="benefit.description"></p>
          </AdvancedCard>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import { ref } from 'vue'
import AdvancedCard from '@/components/AdvancedCard.vue'

const teamMembers = ref([
  {
    name: '张三',
    role: '前端架构师 & UI设计师',
    avatar: 'https://picsum.photos/100/100?random=4',
    description: '专注于Vue生态和现代前端架构设计'
  },
  {
    name: '李四',
    role: '全栈开发者',
    avatar: 'https://picsum.photos/100/100?random=5',
    description: '擅长Node.js和数据库设计'
  },
  {
    name: '王五',
    role: 'DevOps工程师',
    avatar: 'https://picsum.photos/100/100?random=6',
    description: '专注于CI/CD和云原生技术'
  }
])

const technologies = ref([
  {
    name: 'Vue 3',
    description: '渐进式 JavaScript 框架'
  },
  {
    name: 'Vite',
    description: '下一代前端构建工具'
  },
  {
    name: 'Vue Router',
    description: 'Vue.js 官方路由管理器'
  },
  {
    name: 'Composition API',
    description: 'Vue 3 的新特性，提供更灵活的组件组织方式'
  }
])

const benefits = ref([
  {
    title: '快速开发',
    description: '基于 Vite 的开发服务器启动速度极快，热更新几乎实时响应'
  },
  {
    title: '现代化架构',
    description: '采用最新的前端技术栈，保证项目的技术先进性'
  },
  {
    title: '组件化设计',
    description: '遵循组件化设计原则，提高代码复用性和可维护性'
  },
  {
    title: '响应式布局',
    description: '支持桌面端、平板端和移动端的响应式布局'
  }
])
</script>

<style scoped>
.about {
  padding: 2rem 0;
}

.hero {
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.9;
}

.section {
  margin-bottom: 3rem;
  animation: fadeIn 0.6s ease-out;
}

.section__title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: #2c3e50;
  position: relative;
}

.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 0.8rem auto;
  border-radius: 2px;
}

.team-member {
  text-align: center;
  transition: transform 0.3s ease;
  padding: 1.5rem;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 1rem auto;
  display: block;
  border: 4px solid rgba(102, 126, 234, 0.2);
}

.team-member h3 {
  margin: 1rem 0 0.5rem;
  color: #2c3e50;
  font-size: 1.3rem;
}

.team-member p {
  margin: 0.5rem 0;
  color: #7f8c8d;
}

.team-member .role {
  font-weight: 600;
  color: #667eea;
}

.tech-stack-card {
  transition: all 0.3s ease;
  height: 100%;
}

.tech-stack-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.benefit-card {
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section__title {
    font-size: 1.7rem;
  }
  
  .team-avatar {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section__title {
    font-size: 1.5rem;
  }
}
</style>